//package cn.yym.test.dao.impl;
//
//import cn.yym.test.dao.IUserDao;
//import cn.yym.test.domain.User;
//import cn.yym.test.util.DataSourceUtil;
//import org.apache.commons.dbutils.QueryRunner;
//import org.apache.commons.dbutils.handlers.BeanHandler;
//
//import java.sql.SQLException;
//
///**
// * @author
// */
//public class UserDaoImpl  implements IUserDao {
//    private QueryRunner queryRunner = new QueryRunner(DataSourceUtil.getDataSource());
//    @Override
//    public User checkUser(String username, String password) {
//        User query =null;
//        String sql ="select * from m_user where username=? and password=?";
//        try {
//            query = queryRunner.query(sql, new BeanHandler<>(User.class),username,password);
//        } catch (SQLException sqlException) {
//            sqlException.printStackTrace();
//        }
//
//        return query;
//    }
//}
